package com.seven.restaurant.exception;

/**
 * 全局错误
 * @author BaiBan
 * @since 2022/7/16
 */
public class GlobalException extends Exception {
    /**
     * 错误码
     */
    private final InfoCode code;

    public GlobalException(InfoCode code) {
        this.code = code;
    }

    public InfoCode getCode() {
        return code;
    }
}
